package cn.mineserv.video.videoordersystem.service;

import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import java.util.List;
import cn.mineserv.video.videoordersystem.dao.CommentDao;
import cn.mineserv.video.videoordersystem.model.CommentExample;
import cn.mineserv.video.videoordersystem.model.Comment;
@Service
public class CommentService extends ServiceImpl<CommentDao, Comment> {

    
    public long countByExample(CommentExample example) {
        return baseMapper.countByExample(example);
    }
    
    public int deleteByExample(CommentExample example) {
        return baseMapper.deleteByExample(example);
    }
    
    public List<Comment> selectByExample(CommentExample example) {
        return baseMapper.selectByExample(example);
    }
    
    public int updateByExampleSelective(Comment record,CommentExample example) {
        return baseMapper.updateByExampleSelective(record,example);
    }
    
    public int updateByExample(Comment record,CommentExample example) {
        return baseMapper.updateByExample(record,example);
    }
    
    public int updateBatch(List<Comment> list) {
        return baseMapper.updateBatch(list);
    }
    
    public int updateBatchSelective(List<Comment> list) {
        return baseMapper.updateBatchSelective(list);
    }
    
    public int batchInsert(List<Comment> list) {
        return baseMapper.batchInsert(list);
    }
    
    public int insertOrUpdate(Comment record) {
        return baseMapper.insertOrUpdate(record);
    }
    
    public int insertOrUpdateSelective(Comment record) {
        return baseMapper.insertOrUpdateSelective(record);
    }
}
